{if $module == "home" && $loggedIn == false}
	<object width="901" height="200">
	<param name="movie" value="rsbanner">
	<param name="wmode" value="transparent" />
	<embed wmode="transparent" src="{$imagesURL}/rsbanner.swf" width="901" height="200">
	</embed>
	</object>
{elseif $loggedIn == false}
	{* Used to be a banner here *}
{else if $loggedIn && $user->getUserType()==1}
	<table border="0" style="height:200px;width:880px;vertical-align:top;" cellspacing="0" cellpadding="0">
		<tr>
			<td style="width:200px;vertical-align:top;padding-top:7px;">
				<table id="leerling">
					<tr>
						<td align="center">
							{if $user->getAfbeelding() != ""}
								<img src="{$user->getAfbeelding()}" alt="{$user->getVoornaam()} {$user->getTussenvoegsel()} {$user->getAchternaam()}" />
							{else}
								<img src="{$imagesURL}/avatar_default.png" alt="Default avatar" />
							{/if}
						</td>
					</tr>
				</table>
			</td>
			<td style="width:250px;vertical-align:top;text-align:left">
				<table border="0">
					<tr>
						<td colspan="2" class="leerling_mijn" style="padding-left:5px">Mijn naam:</td>
					</tr>
					<tr>
						<td colspan="2" class="leerling_green" style="padding-left:5px">{$user->getVoornaam()} {$user->getTussenvoegsel()} {$user->getAchternaam()}</td>
					</tr>
					<tr>
						<td colspan="2" class="leerling_mijn" style="padding-left:5px">Mijn rijschool:</td>
					</tr>
					<tr>
						<td colspan="2" class="leerling_green" style="padding-left:5px">{$user->getRijschoolNaam()}</td>
					</tr>
					<tr>
						<td style="vertical-align:top;padding-top:3px">
							<a href="{$siteURL}/tellafriend/?method=modal" title="Vertel een vriend over rijlesplanner.nl" rel="gb_page_center[420, 420]"><img src="{$imagesURL}/tellafriend_shade_small.png" alt="Tell a Friend" style="border: 0px none ;"></a>
						</td>
						<td style="vertical-align:top;padding-left:30px;padding-top:3px">
							<form method="post" id="form_logout" name="form_logout" action="{$REQUEST_URI}">
							<input type="hidden" name="module" value="authentication" />
							<input type="hidden" name="method" value="modal" />
							<input type="hidden" name="referer" value="{$REQUEST_URI}" />
							<input type="hidden" name="action" value="logout" />
							<a href="javascript:document.form_logout.submit();" onClick="javascript:return confirm('Weet je zeker dat je wilt uitloggen?')"><img src="{$imagesURL}/uitloggen_shade_small.png" style="border:none"></a>
							</form>
						</td>
					</tr>
				</table>
			</td>
			<td style="width:430px;vertical-align:center;">
				{$halfbannertop_ad}
			</td>
		</tr>
	</table>
{/if}
